<template>
  <div id="main_div">
    <el-card style="width: 500px;height: 300px;margin: 50px auto">
      <el-form label-width="80px" style="margin-top: 50px;width: 430px;">
        <el-form-item label="用户名">
          <el-input placeholder="请输入用户名" v-model="user.username"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input placeholder="请输入密码" v-model="user.password"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" style="position: relative;left: 125px" @click="login()">登录</el-button>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "LoginView",
  data() {
    return {
      user:{username:"",password:""}
    }
  },
  methods: {
    login() {
      this.$router.push('/personal')
    }
  },
}
</script>

<style scoped>

</style>